import requests


headers = {
    # "accept": "*/*",
    # "accept-language": "en-US,en;q=0.9",
    # "cache-control": "no-cache",
    "content-type": "application/x-www-form-urlencoded",
    "origin": "https://www.facebook.com",
    # "pragma": "no-cache",
    # "priority": "u=1, i",
    "referer": "https://www.facebook.com/search/pages?q=computer%20accessories",
    # "sec-ch-prefers-color-scheme": "light",
    # "sec-ch-ua": "\"Chromium\";v=\"134\", \"Not:A-Brand\";v=\"24\", \"Google Chrome\";v=\"134\"",
    # "sec-ch-ua-full-version-list": "\"Chromium\";v=\"134.0.6998.166\", \"Not:A-Brand\";v=\"24.0.0.0\", \"Google Chrome\";v=\"134.0.6998.166\"",
    # "sec-ch-ua-mobile": "?0",
    # "sec-ch-ua-model": "\"\"",
    # "sec-ch-ua-platform": "\"Windows\"",
    # "sec-ch-ua-platform-version": "\"13.0.0\"",
    # "sec-fetch-dest": "empty",
    # "sec-fetch-mode": "cors",
    "sec-fetch-site": "same-origin",
    "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36",
    # "x-asbd-id": "359341",
    # "x-fb-friendly-name": "CometHovercardQueryRendererQuery",
    # "x-fb-lsd": "VI6KE8Z6zMFkA05HRnPh01"
}
cookies = {
    # "datr": "Ac3DaP2ZvaGKNRgUSMiwRH9Q",
    # "sb": "Ac3DaIBdxU29RvcErm9I-y1G",
    # "ps_l": "1",
    # "ps_n": "1",
    # "locale": "en_US",
    "c_user": "61578635791448",
    # "ar_debug": "1",
    # "fr": "1ONYIP6N4smjlv7Sk.AWeyUnu15j9EmkAnh-RzD7bKKn7Lib0CmFQ6LESX3Qdy4iWWzZ4.Bo0OZc..AAA.0.0.Bo0OZc.AWcT_u4UqF8IivXWnh6d4dmtVK8",
    "xs": "8%3Ar8E04T9gRV91hQ%3A2%3A1757662728%3A-1%3A-1%3A%3AAcW0EnY4ik-7ctUI_jMpRJHyWDl6tD4y3UXqsVYj9g",
    # "presence": "C%7B%22t3%22%3A%5B%5D%2C%22utc3%22%3A1758520933101%2C%22v%22%3A1%7D",
    # "wd": "897x945"
}
url = "https://www.facebook.com/api/graphql/"
data = {
    # "av": "61578635791448",
    # "__aaid": "0",
    # "__user": "61578635791448",
    # "__a": "1",
    # "__req": "4s",
    # "__hs": "20353.HYP:comet_pkg.2.1...0",
    # "dpr": "1",
    # "__ccg": "EXCELLENT",
    # "__rev": "1027405870",
    # "__s": "n33i02:yxfx1t:1hgian",
    # "__hsi": "7552789833467939105",
    # "__dyn": "7xeUjGU5a5Q1ryaxG4Vp41twWwIxu13wFwhUngS3q2ibwNw9G2Saw8i2S1DwUx60GE5O0BU2_CxS320qa321Rwwwqo462mcwfG12wOx62G5Usw9m1YwBgK7o6C0Mo4G17yovwRwlE-U2exi4UaEW2G1jwUBwJK14xm3y11xfxmu3W3rwxwjFovUaU3VwLyEbUGdG0HE88cA0z8c84q58jyUaUbGxe6Uak0zU8oC1hxB0qo4e4UO2m3Gfw-KufxamEbbxG1fBG2-2K0E8461wweW2K3abxG6E5i",
    # "__csr": "g49sQ5RML2c9gOx58jOg_b4b2v4qvdbTsRMR5PsQJFlkIJllSzShIiYynqRnlti4nsLCvHOvLAlK9hlOaGsBWczqAFoyAKJejmHGQp4GZQGJqhqAhlFikKmJWKmqmaGFel13F5pox5KjJdEyHSHyXHJpuAKFZ9a48yiWDKup2HKRy4HypfF924KUO8z9rVqDAG59rDXGV8giXBOUCbQu9yAaBVZ4yVHhrF1929WqCDwzGeggJ2UBKXG9zTz8N5C-4BDHgKmh2FBxa79-nG8y8kWUnGq5t1q5Ux2t0xUG4Ey5eeDK8hFucGUG2d4VUOq4EiyEyEixO7okBzUaCcHxi5ES78vxucBy8B1q2qi14GcyXxC7EfUbkq2a4Xxa4WzEvCwCy9UoyUkwAw_wwxObzqWwBwpotBwFxTxG2a2m3WezU8okwrEaF8158qwPxG18xx1m27yU6q2C0UUcE2swa53Ux0lA0GS1fV81l8bOz5wiE72Uow8R0V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22h0xU4q0Spo3xwjEb8K2G2e7pE35AwTzo5G6Ubby8984a8Cx2cwTxe3a4U4-68hwXx-1Xwn8txu1pwLwJgdo2ngtwWGawLwZx26EeVEGqqq1HwmUy58cUak7UkyUd84K788EB7gB0t8mwg8mwce1zwEwnE6i3C5obk3qifzU9kdyo8E6Ci3O1cyo4y321Wwgo2-xTDxZa25w8W17wbu1wwRwooa84qUdU34wzwDzESew9am0A82MwyKV8erw9qcwbp04wwEAwLzEmxm0IUjG0OU2yBt0Aw5vwn8rzoG2-m488E2vwywTxS12xi366o88b8rwjE6G10wuU6u1vxCEiK58y5o6K4Enw8S588aBzE4e0SEjwfq0IUb8nwoE9827DwTxOeBwjE4m0CEy0IU2AxmUswjU6K0CE2Aw9e22WCxK5EC4U4Sq485S5Epw9y8w5Ow8S10xu4U18opDwfd0vku5otxqq0g-u6k4U52bCyEeEW4Gyo2ewDxa8AwdW59E5a1Bg",
    # "__sjsp": "gac8gMy8qz8AO3N94yEoAACgx269224GFz88Eh22r4EGj8yWeoeNBhwWyqMMIGsthlCsAOlOj8HlIj5qyA-mLj98ilPASPLGQBKqvm49lEFvp2nBx2CkCjcWG4C6bAqCxClyo949VWUW95yQfynhEGi4kDGUgO2CvG4eeB8TczuYx4y98TiIlSg92kHAbjX8O27zEhr8iWLxCjiGuyFEMwxS9AxsMkF7yByxqaEyt5Q8yKbAApFUK9G6HFFfBxiaK5ouy21KiUEi8tyEkglg8Je2p2yo-9t1C20Ch6yAbhUKbzEboK48pykamAi5i5o5jyyxS328g8QFQchA7UXyQCZPh921iQ2ybxGiU-2GdwwAxZ1N6BzE5Ci6EjgiJwXxle462B1V0Ize5ogBg148rgcFUBBzUvxx085161LxC0jy1BwgUsg3t7wIgi82ii1Ng4wjc0RoU9h85O2u0KU1nE0MaO1xa0_FCN83Yw2HA",
    # "__comet_req": "15",
    "fb_dtsg": "NAfuBtykQTQl5-eY1lcJLiWhwKLv3vqDcdVmgfsjgjrSNokndRMO3PA:8:1757662728",
    # "jazoest": "25723",
    "lsd": "VI6KE8Z6zMFkA05HRnPh01",
    # "__spin_r": "1027405870",
    # "__spin_b": "trunk",
    # "__spin_t": "1758520918",
    # "__crn": "comet.fbweb.CometSearchGlobalSearchDefaultTabRoute",
    # "fb_api_caller_class": "RelayModern",
    # "fb_api_req_friendly_name": "CometHovercardQueryRendererQuery",
    "variables": "{\"actionBarRenderLocation\":\"WWW_COMET_HOVERCARD\",\"context\":\"DEFAULT\",\"entityID\":\"61550489255565\",\"scale\":1,\"__relay_internal__pv__WorkCometIsEmployeeGKProviderrelayprovider\":false}",
    # "server_timestamps": "true",
    "doc_id": "24410791441924889"
}
proxies = {
    'http': 'http://127.0.0.1:8889',
    'https': 'http://127.0.0.1:8889'
}
response = requests.post(url, headers=headers, cookies=cookies, data=data,proxies=proxies)

print(response.text)
print(response)